
#ifndef __SERVER_H__
#define __SERVER_H__

#include <buf.h>

struct server_t {
	int fd;
	struct buf_t *bufin;
	struct buf_t *bufout;
};

extern struct server_t g_server;

int server_init();
int server_trans(int fd, void *arg);
int server_write(int fd, void *arg);

#endif // __SERVER_H__
